package day03;

import jdk.internal.org.objectweb.asm.tree.MultiANewArrayInsnNode;

public class PackageTest {
    public static void main(String[] args) {
        /*
        int a =8,b=5;
        int max =a>b?a:b;
        System.out.println("max="+max);


         */

        /*
        int a =8, b=5;
        int max;
        if (a>b){
            max=a

        }else{
            max=b
        }
        System.out.println("max="+max);
        int year=2000;
        if ((year%4==0 && year%100!=0) ||year%400==0){
            System.out.println(year+"是闰年");


        }else {System.out.println(year+"是平年");

        }


         */


        int score=95;
        if (score<=0 || score>100){
            System.out.println("成绩不合法");

        }else if (score>=90){
            System.out.println("A-优秀");

        }else if (score>=80){
            System.out.println("B-良好");

        }else if (score>=60){
            System.out.println("C-中等");

        }else {
            System.out.println("D-不及格");
        }





    }
}
